package com.drugstore.drugstore.domain;


/**
 * 对象 medicine
 * 
 * @author 
 * @date 2025-05-08
 */
public class Medicine 
{

    /** $column.columnComment */
    private Long id;

    /** 药品名称 */
    private String name;

    /** 药品类型/分类 */
    private String type;

    /** 成分说明 */
    private String ingredients;

    /** 用法用量 */
    private String usageInfo;

    /** 禁忌 */
    private String contraindication;

    /** 售价（单位分） */
    private Long price;

    /** 状态（0在售，1停售） */
    private Long status;


    public Medicine() {
    }

    public Medicine(Long id, String name, String type, String ingredients, String usageInfo, String contraindication, Long price, Long status) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.ingredients = ingredients;
        this.usageInfo = usageInfo;
        this.contraindication = contraindication;
        this.price = price;
        this.status = status;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * 设置
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * 获取
     * @return ingredients
     */
    public String getIngredients() {
        return ingredients;
    }

    /**
     * 设置
     * @param ingredients
     */
    public void setIngredients(String ingredients) {
        this.ingredients = ingredients;
    }

    /**
     * 获取
     * @return usageInfo
     */
    public String getUsageInfo() {
        return usageInfo;
    }

    /**
     * 设置
     * @param usageInfo
     */
    public void setUsageInfo(String usageInfo) {
        this.usageInfo = usageInfo;
    }

    /**
     * 获取
     * @return contraindication
     */
    public String getContraindication() {
        return contraindication;
    }

    /**
     * 设置
     * @param contraindication
     */
    public void setContraindication(String contraindication) {
        this.contraindication = contraindication;
    }

    /**
     * 获取
     * @return price
     */
    public Long getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(Long price) {
        this.price = price;
    }

    /**
     * 获取
     * @return status
     */
    public Long getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Long status) {
        this.status = status;
    }

    public String toString() {
        return "Medicine{id = " + id + ", name = " + name + ", type = " + type + ", ingredients = " + ingredients + ", usageInfo = " + usageInfo + ", contraindication = " + contraindication + ", price = " + price + ", status = " + status + "}";
    }
}
